//
//  TextFieldCell.m
//  IOS_Demo
//
//  Created by hjw on 13-5-15.
//  Copyright (c) 2013年 hjw. All rights reserved.
//

#import "PATextFieldCell.h"

@implementation PATextFieldCell
@synthesize nameLable;
@synthesize typeTF;
@synthesize typeLable;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.frame = CGRectMake(0, 0, 320-40, 50);
        
        self.nameLable = [[UILabel alloc] initWithFrame:CGRectMake(20, 5, 80, 40)];
        self.nameLable.font = [UIFont systemFontOfSize:18.0f];
        self.nameLable.textColor = [UIColor blackColor];
        self.nameLable.textAlignment = NSTextAlignmentLeft;
        self.nameLable.backgroundColor = [UIColor clearColor];
        self.nameLable.textColor = ENABLE_COLOR;
        [self addSubview:self.nameLable];
        
        self.typeLable = [[UILabel alloc] initWithFrame:CGRectMake(80+20 + 5 , 5, 300 - 100-10, 40)];
        self.typeLable.font = [UIFont systemFontOfSize:18.0f];
        self.typeLable.textColor = [UIColor blackColor];
        self.typeLable.textAlignment = NSTextAlignmentRight;
        self.typeLable.backgroundColor = [UIColor clearColor];
        self.nameLable.textColor = ENABLE_COLOR;
        [self addSubview:self.typeLable];

        /*
        self.typeTF = [[UITextField alloc] initWithFrame:CGRectMake(80+10 + 5 , 5, 300 - 100, 30)];
        self.typeTF.font = [UIFont systemFontOfSize:13];
        self.typeTF.backgroundColor = [UIColor clearColor];
        [self.typeTF setTextAlignment:NSTextAlignmentRight];
        self.typeTF.secureTextEntry = NO; //密码
        self.typeTF.clearButtonMode = UITextFieldViewModeWhileEditing; //编辑时会出现个修改X
        self.typeTF.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
        [self addSubview:self.typeTF];
         */
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}



@end
